package cn.zqh.commodity;


import cn.zqh.bean.api.CommonResult;
import cn.zqh.commodity.utils.EsCommodityUtils;
import cn.zqh.uuid.utils.SnowflakeId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

/**
 * @Author: zqh
 * @Date: 2022-12-26-10:42
 * @Description: 测试类$
 */
public class one {

    @Resource
    private EsCommodityUtils esCommodityUtils;

    @Autowired
    private RestTemplate restTemplate;


    public static void main(String[] args) {
        long l = SnowflakeId.nextId();
        System.out.println(l);
        System.out.println(new Date().getTime());
        LocalDateTime localDateTime = LocalDateTime.now();
        String result =  localDateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
        System.out.println("DateTimeFormatter:"+result);
        String nn = "http://43.138.31.196:9000/cosmetics/20221227-a13092072339448fbf1485cff57d60e4.mp3";
        System.out.println(nn.substring(36,81));



    }
}
